<?php

class projectView extends View {

	function __construct(){
		parent::__construct();
	}

	public function showAddProject() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('project/status_json.tpl');
		}
		else {
			$this->setTemplate('project/status.tpl');
		}
			
		$this->show();
	}

	public function showGetProject() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('project/get_json.tpl');
		}
		else {
			$this->setTemplate('project/get.tpl');
		}

		$this->show();
	}

	public function showUpdateProject() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('project/status_json.tpl');
		}
		else {
			$this->setTemplate('project/status.tpl');
		}
		$this->show();
	}

	public function showDeleteProject() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('project/status_json.tpl');
		}
		else {
			$this->setTemplate('project/status.tpl');

		}
		$this->show();
	}

}
?>